package com.aizuda.boot.modules.business.comment.entity.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "评论附件响应")
public class CommentAttachmentRespDTO {
    @Schema(description = "附件ID", example = "1")
    private Integer id;

    @Schema(description = "文件URL", example = "http://example.com/file.pdf")
    private String fileUrl;

    @Schema(description = "文件名", example = "合同文档.pdf")
    private String fileName;

    @Schema(description = "文件类型", example = "application/pdf")
    private String fileType;

    @Schema(description = "文件大小（字节）", example = "2048")
    private Long fileSize;

    @Schema(description = "上传时间", example = "2023-10-01 12:00:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime uploadTime;
}